<!-- Title Variables -->
<% phc_title "PHCMembers - Directory Category Manager" %>
<% phc_title_tagline "Directory Category Index" %>

<!-- Page Header -->
<div class="row">
	<div class="col-lg-12">

		<!-- Bread Crumbs -->
		<ol class="breadcrumb">
			<li><%= link_to "Dashboard", directory_root_path %></li>
			<li class="active"><%= yield(:phc_title_tagline) %></li>
		</ol>

		<!-- Page Title -->
		<h3 class="page-title">
			<%= yield(:phc_title) %> </br>
			<small><%= yield(:phc_title_tagline) %></small>
		</h3>

	</div>
</div>

<!-- Main Content -->
<div class="row">
	<div class="col-lg-12">

		<div class="panel panel-default">
			<div class="panel-heading">
				<div class="caption">
					<span class="caption-subject bold uppercase">Category List</span>
				</div>
			</div>
			<div class="panel-body">
				<ul class="list-group">
					<% @directory_categories.each do |directory_category| %>
						<li class="list-group-item">
							<span class="badge badge-default badge-roundless"><%= directory_category.listings.count %></span>
							<%= link_to directory_category.catname, directory_category %>
						</li>
					<% end %>
				</ul>
			</div>
		</div>

	</div>
</div>
